package com.kerrykidz.membership.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.kerrykidz.membership.dao.model.CusGuaEntity;
import com.rdp.framework.core.dao.mapper.MyBatisSuperMapper;
import com.rdp.framework.exception.RDPException;

@Repository
public interface CusGuaEntityMapper extends MyBatisSuperMapper<CusGuaEntity>{

	/**
	 * 根据会员编号获取监护人信息
	 * @param memberId:会员Id
	 * @return
	 */
	public List<CusGuaEntity> findGuaByMemberId(@Param("memberId") String memberId) throws RDPException;
	
	/**
	 * 根据会员编号获取监护人信息(现场)
	 * @param memberId:会员Id
	 * @return
	 */
	public List<CusGuaEntity> findSiteGuaByMemberId(@Param("memberId") String memberId) throws RDPException;
	
	/**
	 * 根据会员编号和监护人编号获取监护人信息
	 * @param memberId:会员Id
	 * @param guaId:监护人Id
	 * @return
	 */
	public CusGuaEntity getGuaByMemberIdAndGuaId(@Param("memberId") String memberId,@Param("guaId") String guaId);
}